Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / feature / widget / src / main / res / layout / widget_composition_error.xml

Displaying Raw • Download

feature/widget/src/main/res/layout/widget_composition_error.xml c8d9795885f5f4edc710db10bc0d366dd72bccbc (c8d97958) Text, 2.29 KB

Tff7b72<?xml version="1.0" encoding="utf-8"?>
T8b949e<!--
~ Copyright (c) 2026 Meshtastic LLC
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

T8b949e<!--
Last-resort UI for LocalStatsWidget, inflated by LocalStatsWidget.onCompositionError when the Glance
composition throws. It replaces Glance's default "Can't show content" layout.

This is a RemoteViews layout, so it is deliberately plain: no Compose, no theming, no click targets. The text is
left empty here and set at runtime via setTextViewText, because the user-facing string lives in the
Crowdin-managed Compose-resources catalog (core/resources) rather than in Android resources. Hardcoding a string
here would ship it untranslated.

textColorPrimary resolves against the host launcher's theme, which keeps the message legible in both light and
dark without us guessing at a background colour.
->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f->`f
Tff7b72<LinearLayout Te6edf3xmlns:android=Ta5d6ff"http://schemas.android.com/apk/res/android"
Te6edf3android:layout_width=Ta5d6ff"match_parent"
Te6edf3android:layout_height=Ta5d6ff"match_parent"
Te6edf3android:orientation=Ta5d6ff"vertical"
Te6edf3android:gravity=Ta5d6ff"center"
Te6edf3android:padding=Ta5d6ff"16dp"Tff7b72>

Tff7b72<ImageView
Te6edf3android:layout_width=Ta5d6ff"32dp"
Te6edf3android:layout_height=Ta5d6ff"32dp"
Te6edf3android:src=Ta5d6ff"@drawable/widget_app_icon"
Te6edf3android:contentDescription=Ta5d6ff"@null" Tff7b72/>

Tff7b72<TextView
Te6edf3android:id=Ta5d6ff"@+id/widget_composition_error_text"
Te6edf3android:layout_width=Ta5d6ff"wrap_content"
Te6edf3android:layout_height=Ta5d6ff"wrap_content"
Te6edf3android:layout_marginTop=Ta5d6ff"8dp"
Te6edf3android:gravity=Ta5d6ff"center"
Te6edf3android:maxLines=Ta5d6ff"2"
Te6edf3android:textColor=Ta5d6ff"?android:attr/textColorPrimary"
Te6edf3android:textSize=Ta5d6ff"12sp" Tff7b72/>

Tff7b72</LinearLayout>

Served by rngit 1.5.0 - Generated in 0.05s